<!DOCTYPE html>
<head>
    <#assign dicSelect = JspTaglibs["http://www.casic304.cn/dicSelect"]/>
    <#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
    <meta charset="utf-8">
    <title>课题基本信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <!--<link rel="stylesheet" href="/qbdmsStatic/style/forms/currencyCss.css">-->
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <#if isClose == 'true'>
    <style>
        .listBody .qbdms-bodyDiv{padding: 0 }
        body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
    </style>
</#if>
</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body">
        <#if isClose != 'true'><div class="qbdms-formTitle">课题信息 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdTecBasicmanage/get"
              lay-filter="wQbdTecBasicmanageDataForm">

            <div class="" style="width: 100%;overflow-x: auto">
                <!--<div class="dragInfo temSpace" colspan="2" rowspan="1" id="tbxx"></div>-->
                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr id="tbxx">
                    </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                项目编号<span style="color: red;">*</span>
                            </td>
                            <td name="fItemnumber">

                            </td>

                            <td class="qbdms-zeroTable-lable">
                                项目密级<span style="color: red;">*</span>
                            </td>
                            <td >
                                <@secSelect.sec_select data_src=1 required=true  name="secret"/>
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                项目名称<span style="color: red;">*</span>
                            </td>
                            <td  name="fItemname">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                课题类型<span style="color: red;">*</span>
                            </td>
                            <td  name="fTopictype">
                            </td>

                            <td class="qbdms-zeroTable-lable">
                                课题类别<span style="color: red;">*</span>
                            </td>
                            <td >
                                <@dicSelect.dic name="fItemtype" verify="required" nodeKey="ktlb" />
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                技术领域<span style="color: red;">*</span>
                            </td>
                            <td>
                                <@dicSelect.dic name="fClassification" verify="required" nodeKey="jzly" />
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                项目单位地址
                            </td>
                            <td name="fItemdeptaddress">
                            </td>

                            <td class="qbdms-zeroTable-lable">
                                拟试点型号
                            </td>
                            <td name="fTestmodel">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                起止时间(年)
                            </td>
                            <td name="fItemstartdate">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                批复年度
                            </td>
                            <td name="fApprovedyear">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                研究周期
                            </td>
                            <td name="fResearchcycle">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                单位负责人
                            </td>
                            <td name="fDeptchargeperson">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                主承担单位
                            </td>
                            <td name="fMainunit">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                课题负责人
                            </td>
                            <td name="fTopicchargeperson">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                联系电话
                            </td>
                            <td name="fTelephonenumber">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                联合承担单位
                            </td>
                            <td name="fUniondept">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                立项批复文号
                            </td>
                            <td name="fItemapprovalnumber">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                任务书批复文号
                            </td>
                            <td name="fTaskapprovalnumber">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                批复总经费(万元)
                            </td>
                            <td name="fApprovalmoney">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                国拨资金(万元)
                            </td>
                            <td name="fNationalmoney">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                自筹资金(万元)
                            </td>
                            <td name="fRaisemoney">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                是否完成审计
                            </td>
                            <td>
                                <select name="fIfcompleteaudit" maxlength="20">
                                    <option></option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                计划审计时间
                            </td>
                            <td name="fPlanauditdate">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                审计实际完成时间
                            </td>
                            <td name="fActualauditdate">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                是否完成验收
                            </td>
                            <td>
                                <select name="fObjectfield" lay-filter="sfwcys" maxlength="20">
                                    <option></option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                计划验收时间
                            </td>
                            <td name="fPlancheckdate">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                验收完成时间
                            </td>
                            <td name="fActualcheckdate">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                是否调整
                            </td>
                            <td colspan="5">
                                <select name="fIfadjustment" maxlength="2000">
                                    <option></option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                备注
                            </td>
                            <td colspan="5" name="fMemo">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                必要性
                            </td>
                            <td colspan="5" name="fNecessity">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                对应的要点
                            </td>
                            <td colspan="5" name="fKeypoints">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                主要研究目标
                            </td>
                            <td colspan="5" name="fTarget">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                主要研究内容
                            </td>
                            <td colspan="5" name="fContent">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                预期成果物
                            </td>
                            <td colspan="5" name="fAchievements">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                针对解决的重大问题
                            </td>
                            <td colspan="5" name="fMajorproblems">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                建议书
                            </td>
                            <td colspan="5">
                                <div class="uploadFileList" fileUploadName="fRecommendation"><span style='color: #c0c4cc'>未上传</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                建议书页数
                            </td>
                            <td colspan="5" name="fRecommendationpages">
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                任务书
                            </td>
                            <td colspan="5">
                                <div class="uploadFileList" fileUploadName="fTaskbook"><span style='color: #c0c4cc'>未上传</span></div>
                            </td>
                        </tr>
                        <tr>
                            <td class="qbdms-zeroTable-lable">
                                验收报告
                            </td>
                            <td colspan="5">
                                <div class="uploadFileList" fileUploadName="fAcceptancereport"><span style='color: #c0c4cc'>未上传</span></div>
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td colspan="6">
                                已验收项目成果信息填报(“是否完成验收”字段选择为“是”时，展示下面的数据项，要求为必填项)
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                突破关键技术<span style="color: red;">*</span>
                            </td>
                            <td name="fKeytechnology">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                原理样机<span style="color: red;">*</span>
                            </td>
                            <td name="fPrototype">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                材料样品<span style="color: red;">*</span>
                            </td>
                            <td name="fSample">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                样件<span style="color: red;">*</span>
                            </td>
                            <td name="fSamplenum">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                装备<span style="color: red;">*</span>
                            </td>
                            <td name="fEquipment">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                集成验证或演示系统<span style="color: red;">*</span>
                            </td>
                            <td name="fDemosystem">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                数据库<span style="color: red;">*</span>
                            </td>
                            <td name="fDatabase">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                技术标准<span style="color: red;">*</span>
                            </td>
                            <td name="fTechnicalstandard">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                工艺规范<span style="color: red;">*</span>
                            </td>
                            <td name="fProcessspecification">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                申请发明专利<span style="color: red;">*</span>
                            </td>
                            <td name="fApplicationpatent">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                授权发明专利<span style="color: red;">*</span>
                            </td>
                            <td name="fAuthorizedpatent">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                商标<span style="color: red;">*</span>
                            </td>
                            <td name="fTrademark">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                软件<span style="color: red;">*</span>
                            </td>
                            <td name="fSoftware">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                软件著作权<span style="color: red;">*</span>
                            </td>
                            <td name="fCopyright">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                论文<span style="color: red;">*</span>
                            </td>
                            <td name="fPaper">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                专著<span style="color: red;">*</span>
                            </td>
                            <td name="fMonograph">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                培养研究生<span style="color: red;">*</span>
                            </td>
                            <td name="fGraduatestudent">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                应用型号产品<span style="color: red;">*</span>
                            </td>
                            <td name="fModelproducts">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                国防科技工业科技报告<span style="color: red;">*</span>
                            </td>
                            <td name="fReports">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                组织验收部门<span style="color: red;">*</span>
                            </td>
                            <td name="fCheckdept">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                评定等级<span style="color: red;">*</span>
                            </td>
                            <td>
                                <@dicSelect.dic name="fRatinglevel" nodeKey="pddj" />
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                主审专家<span style="color: red;">*</span>
                            </td>
                            <td name="fPresidingexpert">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                评审组组长<span style="color: red;">*</span>
                            </td>
                            <td name="fAssessmentleader">
                            </td>
                            <td class="qbdms-zeroTable-lable">
                                验收批复文号
                            </td>
                            <td name="fCheckapprovalnumber">
                            </td>
                        </tr>
                        <tr class="yysxmcgxxtb">
                            <td class="qbdms-zeroTable-lable">
                                是否结题
                            </td>
                            <td colspan="5">
                                <select name="fIfconclusion" maxlength="20" lay-filter="conclusion">
                                    <option></option>
                                    <option value="是">是</option>
                                    <option value="否">否</option>
                                </select>
                            </td>
                        </tr>
                    </tbody>
                </table>

                <input type="hidden" placeholder="请输入" autocomplete="off"
                       class="layui-input dateTimeFiled input-right time-init" name="fActualauditdate"
                       format="yyyy-MM-dd" datetype="date">
                <input type="hidden" placeholder="请输入" autocomplete="off"
                       class="layui-input dateTimeFiled input-right time-init" name="fPlanauditdate"
                       format="yyyy-MM-dd" datetype="date">
                <input type="hidden" placeholder="请输入" autocomplete="off"
                        class="layui-input dateTimeFiled input-right time-init" name="fPlancheckdate">
                <input type="hidden" placeholder="请输入" autocomplete="off"
                       class="layui-input dateTimeFiled input-right time-init" name="fActualcheckdate">
            </div>
            <p class="qbdms-SubTableTitle"><span>经费及计划</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc docx
                pdf，文件大小限制不超过200M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"
                   id="add"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdTecFundsplans subFormTable"
                       id="wQbdTecFundsplans" style="min-width: 2333px;">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 40px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 77px">
                            年度<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 132px">
                            年度申请经费(万元)<span style="color: red;">*</span>
                        </td>

                        <td class="temSpace subDialogShowState" style="width: 145px">
                            本年度其他资金(万元)<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 145px">
                            已安排财政投资(万元)<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 145px">
                            已安排其他资金(万元)<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 114px">
                            年度主要内容<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 114px">
                            年度研究成果<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 310px">
                            实际完成研究内容<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            实际完成成果物<span style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace qbdms-temTable-td" name="s:wQbdTecFundsplans:fYear">
                        </td>

                        <td class="temSpace qbdms-temTable-td qbdms-money" name="s:wQbdTecFundsplans:fFunds">
                        </td>

                        <td class="temSpace qbdms-temTable-td qbdms-money" name="s:wQbdTecFundsplans:fOtherfunds">
                        </td>
                        <td class="temSpace qbdms-temTable-td qbdms-money" name="s:wQbdTecFundsplans:fArrangedfinancialfun">
                        </td>
                        <td class="temSpace qbdms-temTable-td qbdms-money" name="s:wQbdTecFundsplans:fArrangedotherfunds">
                        </td>

                        <td class="temSpace qbdms-temTable-td">
                            <textarea  title="请输入年度主要内容" autocomplete="off"
                                      requiredFlag="required" class="layui-input"
                                      lay-reqtext="年度主要内容是必填项"
                                      name="s:wQbdTecFundsplans:fContent" maxlength="200"></textarea>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <textarea  title="请输入年度研究成果" autocomplete="off"
                                      requiredFlag="required" class="layui-input"
                                      lay-reqtext="年度研究成果是必填项"
                                      name="s:wQbdTecFundsplans:fAchievements" maxlength="200"></textarea>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <textarea  title="请输入实际完成研究内容" autocomplete="off"
                                      requiredFlag="required" class="layui-input"
                                      lay-reqtext="实际完成研究内容是必填项"
                                      name="s:wQbdTecFundsplans:fActualcontent"
                                      maxlength="200"></textarea>
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <div class="uploadFileCont">
                                   <button type="button"
                                        class="layui-btn iconfont iconupload fileUpload qbdms-fileUp"
                                        id="fSkillcerfileList">上传附件
                                </button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdTecFundsplans:fActualachievements"
                                       fieldname="s:wQbdTecFundsplans:fActualachievements"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdTecFundsplans:fActualachievements"></div>
                            </div>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <p class="qbdms-SubTableTitle"><span>归档成果物表单</span><i class="qbdms-fileUpText">支持单个附件上传，附件格式：doc docx
                pdf，文件大小限制不超过200M</i></p>
            <div class="qbdms-tableDiv">
                <a modetype="2" class="addFormTr1"><i class="layui-icon layui-icon-addition"></i>新增</a>
                <table class="qbdms-temTable wQbdTecAchievements subFormTable"
                       style="min-width: 1060px"
                       id="wQbdTecAchievements">
                    <tbody>
                    <tr class="temSpace qbdms-temTable-thead">
                        <td class="temSpace" style="width: 35px;">
                            序号
                        </td>
                        <td class="temSpace subDialogShowState" style="width: 130px">
                            类别<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style=" width:200px">
                            编写人或单位<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState" style=" width:200px">
                            成果物名称<span style="color: red;">*</span>
                        </td>
                        <td class="temSpace subDialogShowState">
                            附件<span style="color: red;">*</span>
                        </td>
                    </tr>
                    <tr class="temSpace subContTem">
                        <td class="temSpace qbdms-temTable-seNumber">
                            <div class="temTag">0</div>
                        </td>
                        <td class="temSpace  qbdms-temTable-td" name="s:wQbdTecAchievements:fCategory">
                            <!--<div class="temSpace temSpaceCss">-->
                            <!--</div>-->
                        </td>
                        <td class="temSpace  qbdms-temTable-td" name="s:wQbdTecAchievements:fCompilingperson">
                            <!--<div class="temSpace temSpaceCss">-->
                            <!--</div>-->
                        </td>
                        <td class="temSpace  qbdms-temTable-td" name="s:wQbdTecAchievements:fAchievementname">
                            <!--<div class="temSpace temSpaceCss">-->
                            <!--</div>-->
                        </td>
                        <td class="temSpace qbdms-temTable-td">
                            <!--<div class="temSpace ">-->
                            <div class="uploadFileCont">
                                <button type="button"
                                        class="layui-btn iconfont iconupload fileUpload qbdms-fileUp">上传附件
                                </button>
                                <input type="text" class="uploadInput"
                                       requiredFlag="fileRequired"
                                       name="s:wQbdTecAchievements:fEnclosure"
                                       fieldname="s:wQbdTecAchievements:fEnclosure"
                                       style="display:none">
                                <div class="uploadFileList"
                                     fileUploadName="s:wQbdTecAchievements:fEnclosure"></div>
                            </div>
                            <!--</div>-->
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入" autocomplete="off" class="layui-input "
                       maxlength="50" fieldname="id">
                <input type="text" name="fillman" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="fillman">
                <input type="text" name="fillmanaccount" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="fillmanaccount">
                <input type="text" name="filldept" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="filldept">
                <input type="text" name="filldeptid" placeholder="请输入填写部门id"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="filldeptid">
                <input type="text" name="filldepthospital" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="filldepthospital">
                <input type="text" name="filldepthospitalid" placeholder="请输入二级部门id"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="filldepthospitalid">
                <input type="text" name="filldate" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="filldate">
                <input type="text" name="fMainunitid" placeholder="请输入主承担单位ID"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="fMainunitid">
                <input type="text" name="createTime" placeholder="请输入"
                       autocomplete="off" class="layui-input" maxlength="50"
                       fieldname="createTime">
                <input type="text" name="createBy" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="createBy">
                <input type="text" name="updateTime" placeholder="请输入"
                       autocomplete="off" class="layui-input dateTimeFiled time-init" maxlength="50"
                       fieldname="updateTime">
                <input type="text" name="updateBy" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="updateBy">
                <input type="text" name="tenantId" placeholder="请输入租户Id"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="tenantId">
                <input type="text" name="reportStatusTemp" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportStatusTemp">
                <input type="text" name="reportStatus" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportStatus">
                <input type="text" name="reportDate" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportDate">
                <input type="text" name="reportReason" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="reportReason">
                <input type="text" name="returnmsg" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="returnmsg">
                <input type="text" name="fTechnology" placeholder="组织负责人code"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="returnmsg">
            </div>
            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>

        </form>
    </div>
</div>
<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>

<script>

    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index', 'setter', 'layer', 'propsHandle', 'upload', 'common', 'laydate', 'jquery', 'publicMethods', 'qbdmsForm'], function () {

        // -----常量声明----------
        var $ = layui.jquery,
            laydate = layui.laydate,
            setter = layui.setter,  // 配置信息
            layer = layui.layer,
            propsHandle = layui.propsHandle,
            upload = layui.upload,
            publicMethods = layui.publicMethods,
            formId = '${formDefId}' || '',
            defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                formAreaInfo: '.formPreview',
                formAreaInfo: 'html',
                temDate: '.temDate',
                uploadFileBtn: '.uploadFileBtn',
                uploadImgBtn: '.uploadImgBtn',
                richTextArea: '.richTextArea',
                selectInput: '.selectInput',
                radioOptionCont: '.radioOptionCont',
                dataLexiTree: '.dataLexiTree',
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle(),  // 实例化模板功能部分
            form = layui.qbdmsForm;
//            form = layui.form;
        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        $(".subContTem").hide()
        // 子表初始化事件
        temQuery.initSubEvent(defProps, serverPath, setter);
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdTecBasicmanage/view/list';
        });

        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }
        form.verify({
            num: function (value) {
                // 如果值为空，不触发校验
                if (value && !new RegExp(/^[1-9]\d*$/).test(value)) return "只能输入非负整数";

            },
            money: function (value) {
                if (value && !new RegExp(/^((0{1}\.\d{1,2})|([1-9]\d*\.{1}\d{1,2})|([1-9]+\d*))$/).test(value)) {
                    return '请输入数字且小数最多两位';
                }
            },
            fileRequired: [/[\S]+/, "没有上传对应附件"]
        });
        //年范围
        laydate.render({
            elem: '#qzsj'
            , type: 'year'
            , range: true
            , trigger: 'click'
            , done: function (value, date, endDate) {
                $("input[name='fResearchcycle']").val(endDate.year - date.year + 1);
            }
        });
        //年选择器
        laydate.render({
            elem: '#pfnd'
            , type: 'year'
            , trigger: 'click'
        });
        //年选择器
        laydate.render({
            elem: '#yjzq'
            , type: 'year'
            , trigger: 'click'
        });
        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }
        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdTecBasicmanageDataForm',
            idValue: "${id}",
            primary: "id",
            beforeSubmitFun: function (data) {
                //- 附件密级不能高于表单密级 开始 ------------------------------------------------------
                var selectMaxVal = 0;
                var formSecretVal = $("[name='secret']").val();
                $(".fileSecLevel select").each(function () {
                    selectMaxVal = selectMaxVal >= $(this).val() ? selectMaxVal : $(this).val();
                });

                if (selectMaxVal > formSecretVal) {
                    layer.msg('附件密级不能高于表单密级。', {icon: 5});
                    return false;
                }
                //- 附件密级不能高于表单密级 结束 ------------------------------------------------------
                $(".uploadFileList").each(function (i, v) {
                    common.constructFileStr(v)
                });
                //- 子表数据 开始 ------------------------------------------------------
                var sub = [];
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    $(this).find('tr.temSpace').each(function (i, item) {    /*修复需要提交隐藏的行数据的bug*/
                        if (i > 1) {
                            var row = {};
                            var objRow = $(this);
                            $("input:text[name^='s:'],input[type='hidden'][name^='s:'],textarea[name^='s:'],select[name^='s:'],ul[name^='m:']", objRow).each(function () {
                                var name = $(this).attr('name').replace(/.*:/, '');
                                row[name] = $(this).val();
                            });
                            row["sort"] = i - 1;
                            table.fields.push(row);
                        }
                    });
                    data.field[table.tableName] = table.fields;
                });
                //- 子表数据 结束 ------------------------------------------------------

                var files=[];
                //整理上传附件的隐藏域，将提交的字符串转为json对象
                $(".uploadInput").each(function () {
                    var uploadName = $(this).attr("name");
                    if (!$(this).val()) {
                        return;

                    }
                    data.field[uploadName] = eval($(this).val());
                    files=files.concat(eval($(this).val()));
                });

                return common.setFileLevel(files);
            },
            getCallback: function (data) {
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</td>");
//                $("#tbxx").text("填报信息:【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】");
                $("[name='secret']").attr("disabled", true);//设置密级下拉框在修改时不可编辑
                //-修改页面 初始化附件组件 开始 ------------------------------------------
                $('.uploadFileList').each(function () {
                    var fileUploadName = $(this).attr("fileUploadName");
                    var jsonFile = data.data[fileUploadName];
                    var files = eval(jsonFile);

                    if (files) {
                        for (var i = 0; i < files.length; i++) {
                            var fileLevel = files[i].fileLevel;
                            var fileLevelText = files[i].fileLevelText;
                            var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                            var newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)">' + files[i].fileName + '</span></span>';
                            // newStr = '<span class="file-id" style="margin-right: 20px;" fileId=' + files[i].fileId + '><span class="file-name" onclick="downFile(this)">' + files[i].fileName + '</span><i class="layui-icon layui-icon-delete deleteFile" ></i></span>';
                            $(this).html(newStr);
                            $(this).find("select:last").val(fileLevel);
                            $(this).find("select:last").attr("disabled", "disabled");
                        }
                    }
                });
                //-修改页面 初始化附件组件 结束 ------------------------------------------
                // $(".uploadFileList").each(constructFileStr);

                //-修改页面 初始化子表 开始 ------------------------------------------
                $('table.subFormTable').each(function () {
                    var table = {
                        tableName: $(this).attr('class').split(" ")[1],
                        fields: []
                    };
                    table.fields = data.data[table.tableName];
                    if(table.fields.length==0){
                        $(this).parent(".qbdms-tableDiv").append("<p>无数据</p>")
                    }else {
                        $(this).parent(".qbdms-tableDiv").css('padding',"0px")
                    }
                    for (var i = 0, len = table.fields.length; i < len; i++) {
                        var dataRow = table.fields[i];
                        var temp = $("." + table.tableName).prev().click();
                        //这里有子表表头占一行，子表隐藏行占一行，所以取需要赋值的行时，需要temp=i+2
                        var domRow = $(this).find("tr.temSpace:eq(" + (i * 1 + 2) + ")");
                        $.each(dataRow, function (j, val) {
                            var domItem = domRow.find("[name$='" + j + "']");
                            if (domItem) {
                                domItem.html(val);
                            }
                        });
                    }
                });
                //-修改页面 初始化子表附件组件 开始 ------------------------------------------.
                $('.subFormTable').each(function (index, element) {
                    var id = $(this).attr('id');
                    $(element).find(".uploadFileList").each(function (index, element) {
                        if (index == '0') {
                            return true;
                        }
                        var fileUploadName = $(this).attr("fileUploadName");
                        var text = fileUploadName.split(":");
                        var jsonFile = "data.data." + id + "[" + (index * 1 - 1) + "]" + "." + text[2];
                        var files = eval(eval(jsonFile));
                        if (files) {
                            for (var i = 0; i < files.length; i++) {
                                var fileLevel = files[i].fileLevel;
                                var fileLevelText = files[i].fileLevelText;
                                var fileSec = '<div class="fileSecLevel fileSecXg layui-input-inline">' + '<@secSelect.sec_select data_src=1 hasBlank=false/>' + "</div>";
                                var newStr = '<span class="file-id" fileId=' + files[i].fileId + ' fileLevelText="' + fileLevelText + '">' + fileSec + '<span class="file-name" title="点击下载文件" onclick="downFile(this)">' + files[i].fileName + '</span></span>';
                                $(this).html(newStr);
                                $(this).siblings("button").hide();
                                $(this).find("select:last").val(fileLevel);
                                $(this).find("select:last").attr("disabled", "disabled");
                            }
                        }
                    });
                });
                //-修改页面 初始化子表附件组件 结束 ------------------------------------------

                //-修改页面 初始化已验收项目成果信息填报相关数据 开始 ------------------------------------------
                var fObjectfield = data.data["fObjectfield"];
                initYysxmcgxxtbDiv(fObjectfield);
                //-修改页面 初始化已验收项目成果信息填报相关数据 结束 ------------------------------------------
            },
            updateCallback: function (data) {
                if (publicMethods._filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'}, function (index) {
                        layer.close(index);
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdTecBasicmanage/view/list';
                    });
                } else {
                    layer.alert(publicMethods.confirmStyle(data.msg),{title: false,skin: 'confirm-class'});
                }
                return false;
            }

        });
        //下载附件
        window.downFile = function (obj) {
            var fileId = $(obj).parents("span").attr("fileId");
            window.location.href = serverPath.qbdmsPath + setter.extendLinkPath + "attachFile/download?fileId=" + fileId;
        }

        // 删除
        $(document).on('click', '.deleteFile', function () {
            $(".uploadFileList").each(function (i, v) {
                common.constructFileStr(v)
            });
        });

        //-- 子表数据 结束 --------------------------------------------------------------
        var secSelect = '<@secSelect.sec_select data_src=1 hasBlank=false/>'
        var count = 1;
        $(document).on('click', '.addFormTr1', function () {
            count += 1;
            var modetype = $(this).attr('modetype'),
                copyObj = $(this).parent().children('.subFormTable'),
                copyHtm = copyObj.find('tr').eq(1);
            if (modetype === '2') {
                //在这里做一个转换，控制子表隐藏行的必填
                var copyHtmlStr = copyHtm.html();
                copyHtmlStr = copyHtmlStr.replace(/requiredflag/g, "lay-verify");
                // 表格
                copyObj.append('<tr class="temSpace">' + copyHtmlStr + '</tr>');
                // copyObj.append('<tr class="temSpace">' + copyHtm.html() + '</tr>');
                var trArr = copyObj.find('tr');
                trArr.eq(trArr.length - 1).find('td').eq(0).find('.temTag').html(trArr.length - 2);
                // trArr.eq(trArr.length - 1).find('td').eq(6).find('button').attr("id","fSkillcerfileList"+count);
                trArr.eq(trArr.length - 1).find('.fileUpload').attr("id", "fSkillcerfileList" + count);

                trArr.eq(trArr.length - 1).find('[isinit="1"]').each(function (i, item) {
                    $(item).attr('isinit', '2');
                });
                if (trArr.length > 3) {
                    trArr.eq(trArr.length - 1).find('[type=radio]').each(function (i, item) {
                        $(item).attr('name', (trArr.eq(1).find('[type=radio]').eq(i).attr('name')) + '_' + (trArr.length - 2))
                    });
                }
                temQuery.initTemEvent(defProps, serverPath, setter);
            } else if (modetype === '1') {
                // updateTr(copyObj, copyHtm);
            }
            common.uploadfun("#" + "fSkillcerfileList" + count, '${wjszsdsxlx}', "${fileManagementUploadType}", secSelect, true);
            form.render();
            lay('.datetime').each(function () {
                laydate.render({
                    elem: this
                    , type: 'year'
                    , trigger: 'click'
                });
            });
            $(".datetime").removeAttr("lay-key");
            publicMethods.bottomFixd()
        });
        common.uploadfun(".fileUpload", '${wjszsdsxlx}', "${fileManagementUploadType}", secSelect, false)
        var id = "${id}";
        if (id == null || id === '') {
            $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【${filldept}   | ${fillman}  | ${filldate}】</td>");
        }

        form.render();
        //-  已验收项目成果信息填报 开始 ------------------------------------------------------
        $(".yysxmcgxxtb").hide(); // 默认隐藏

        form.on('select(conclusion)', function (data) {
            if (data.value === '是') {
                layer.open({
                    title: '提示信息'
                    , content: '所有课题成果物需上传本系统'
                });
            }
        });

        function initYysxmcgxxtbDiv(fObjectfield) {
            var checkdepts = '${checkdepts}'
            var val = fObjectfield.value ? fObjectfield.value : fObjectfield;
            var validArr = ["fKeytechnology",
                "fPrototype",
                "fSample",
                "fSamplenum",
                "fEquipment",
                "fDemosystem",
                "fDatabase",
                "fTechnicalstandard",
                "fProcessspecification",
                "fApplicationpatent",
                "fAuthorizedpatent",
                "fTrademark",
                "fSoftware",
                "fCopyright",
                "fPaper",
                "fMonograph",
                "fGraduatestudent",
                "fModelproducts",
                "fReports",
                "fCheckdept",
                "fRatinglevel",
                "fPresidingexpert",
                "fAssessmentleader",
                "fCheckapprovalnumber",
                "fIfconclusion"];
            if (val === "是") {
                $(".yysxmcgxxtb").show();
                common.setComponentRequired(validArr, true, null, checkdepts);
                form.render();
            } else {
                common.clearComponentVal(validArr);
                $(".yysxmcgxxtb").hide();
                common.setComponentRequired(validArr, false, null, checkdepts);
            }
        }

        publicMethods.bottomFixd()
        //-- 清空表单控件值 结束 --------------------------------------------------------------
        $("body *").not("#closeWindow").attr("disabled", "disabled");
        $(".uploadFileCont .qbdms-fileUp,.uploadFileCont i,.addFormTr1").hide();
        $(".uploadFileCont").each(function () {
            if ($(this).children('.uploadFileList').children().length == 0) {
                $(this).children('.uploadFileList').append("<span style='color: #C0C4CC'>未上传</span>")
            }
        })
    });
</script>
</body>
</html>